ComponentOne ASP.NET MVC Controls
SortComparer Method

C1.Web.Mvc.Olap.Fluent Namespace > PivotFieldBaseBuilder<TControl,TBuilder> Class : SortComparer Method
The value.
Configurates C1.Web.Mvc.Olap.PivotFieldBase.SortComparer. Sets a function used to compare values when sorting.
Syntax
'Declaration
 
Public Function SortComparer( _
   ByVal value As String _
) As TBuilder
public TBuilder SortComparer( 
   string value
)

Parameters

value
The value.

Return Value

Current builder.
Remarks
If provided, the sort comparer function should take as parameters two values of any type, and should return -1, 0, or +1 to indicate whether the first value is smaller than, equal to, or greater than the second. If the sort comparer returns null, the standard built-in comparer is used.
See Also

Reference

PivotFieldBaseBuilder<TControl,TBuilder> Class
PivotFieldBaseBuilder<TControl,TBuilder> Members